package com.first.computerstore.dao;

import com.first.computerstore.entity.Favorites;

import java.util.List;

public interface FavoritesMapper {
     List<Favorites> queryFavorites(Integer status, Integer uid);

     //添加收藏
     Integer addFavorites(Favorites favorites);

     //取消收藏
     Integer cancelFavorites(Integer fid, Integer uid,Integer status);

     // 商品详情页 通过商品id查询是否已经加入收藏表中
     Integer queryFavoritesByPid(Integer uid, Integer pid);
}
